<?php
declare(strict_types=1);

namespace app\Entity;

/**
 * MarginMargin
 */
class MarginMargin
{
    /**
     * @var int
     */
    private $id;

    /**
     * @var int
     */
    private $userId;

    /**
     * @var string
     */
    private $avaliableAmount = '0.00';

    /**
     * @var string
     */
    private $withdrawingAmount = '0.00';

    /**
     * @var \DateTime|null
     */
    private $createTime;

    /**
     * @var \DateTime|null
     */
    private $updateTime;


    /**
     * Get id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set userId.
     *
     * @param int $userId
     *
     * @return MarginMargin
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;

        return $this;
    }

    /**
     * Get userId.
     *
     * @return int
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set avaliableAmount.
     *
     * @param string $avaliableAmount
     *
     * @return MarginMargin
     */
    public function setAvaliableAmount($avaliableAmount)
    {
        $this->avaliableAmount = $avaliableAmount;

        return $this;
    }

    /**
     * Get avaliableAmount.
     *
     * @return string
     */
    public function getAvaliableAmount()
    {
        return $this->avaliableAmount;
    }

    /**
     * Set withdrawingAmount.
     *
     * @param string $withdrawingAmount
     *
     * @return MarginMargin
     */
    public function setWithdrawingAmount($withdrawingAmount)
    {
        $this->withdrawingAmount = $withdrawingAmount;

        return $this;
    }

    /**
     * Get withdrawingAmount.
     *
     * @return string
     */
    public function getWithdrawingAmount()
    {
        return $this->withdrawingAmount;
    }

    /**
     * Set createTime.
     *
     * @param \DateTime|null $createTime
     *
     * @return MarginMargin
     */
    public function setCreateTime($createTime = null)
    {
        $this->createTime = $createTime;

        return $this;
    }

    /**
     * Get createTime.
     *
     * @return \DateTime|null
     */
    public function getCreateTime()
    {
        return $this->createTime;
    }

    /**
     * Set updateTime.
     *
     * @param \DateTime|null $updateTime
     *
     * @return MarginMargin
     */
    public function setUpdateTime($updateTime = null)
    {
        $this->updateTime = $updateTime;

        return $this;
    }

    /**
     * Get updateTime.
     *
     * @return \DateTime|null
     */
    public function getUpdateTime()
    {
        return $this->updateTime;
    }
}
